import React, { Component } from 'react'

class MyButton extends Component {
  render () {
    return (
      <div>
        { this.props.theme }
        <button>1</button>
      </div>
    )
  }
}
class ToolBar extends Component {
  render () {
    return (
      <MyButton theme = { this.props.theme }></MyButton>
    )
  }
}
export default class App extends Component {
  render() {
    return (
      <div>
        <ToolBar theme = "dark"/>
      </div>
    )
  }
}
